#include "widget.h"
#include "ui_widget.h"
#include<QString>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_ye_clicked()
{
    this->setStyleSheet("background-color: black");//设置窗口

    //设置输入框
    ui->plainTextEdit->setStyleSheet("background-color: black");

    //设置按钮样式
    ui->pushButton_ye->setStyleSheet("background-color: black;color :red");
    ui->pushButton_bai->setStyleSheet("background-color: black;color :red");
}

void Widget::on_pushButton_bai_clicked()
{
    this->setStyleSheet("background-color : black ");


    ui->plainTextEdit->setStyleSheet("background-color : white; color :black;");

    ui->pushButton_ye->setStyleSheet("background-color: black;color :red");
    ui->pushButton_bai->setStyleSheet("background-color: black;color :red");
}
